#ifndef WOOCHY_MOTION_READER_H
#define WOOCHY_MOTION_READER_H

#include "movement.h"
#include <string>
#include <list>
#include <stdio.h>

class MotionRecordReader {
private:
	FILE *_motion_file_fp;
	std::string _motion_file_name;
protected:
	Movement _last_mov;
	int next_movement(Movement &mov);
public:
	MotionRecordReader(const char *motion_file);
	MotionRecordReader(std::string &motion_file);
	virtual ~MotionRecordReader();
	int read_next_movement_list(std::list<Movement> &mov_list, unsigned cur_time);
};

#ifdef DEBUG
void print_movement(Movement &mov);
#endif

#endif

